Sync Configuration
A SyncConfiguration is used to setup a Realm Database that can be synchronized between devices using MongoDB Realm.
A valid User is required to create a SyncConfiguration. See Credentials and App.login for more information on how to get a user object.
A minimal SyncConfiguration can be found below.
val app = App.create(appId)
val user = app.login(Credentials.anonymous())
val config = SyncConfiguration.with(user, "partition-value", setOf(YourRealmObject::class))
val realm = Realm.open(config)
Types
Builder
Link copied to clipboard
class Builder : Configuration.SharedBuilder <SyncConfiguration, SyncConfiguration.Builder>
Content copied to clipboard
Used to create a SyncConfiguration.
Properties
compactOnLaunchCallback
Link copied to clipboard
encryptionKey
Link copied to clipboard
errorHandler
Link copied to clipboard
maxNumberOfActiveVersions
Link copied to clipboard
schemaVersion
Link copied to clipboard